package cn.example.beans;

public class ClassA {

    private String name;
    private String age;
    private ClassB classB;

    public ClassA() {
        System.out.println("ClassA 无参构造办法...");
    }

    public ClassA(String name, String age) {
        this.name = name;
        this.age = age;
    }

    public ClassA(ClassB ClassB) {
        this.classB = ClassB;
    }

    public void method1() {
        System.out.println("ClassA method1...");
    }

}
